package com.wz.wzbubbleai.view;

import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.widget.ListView;

import java.util.jar.Attributes;

/**
 * Created by wangbin on 18-1-4.
 */

public class ChatView extends ListView{

    public ChatView(Context context) {
        super(context);
        setDivider(new ColorDrawable(Color.TRANSPARENT));
        setDividerHeight(15);
        setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
        setStackFromBottom(true);
    }

    public ChatView(Context context, AttributeSet attrs) {
        super(context, attrs);
        setDivider(new ColorDrawable(Color.TRANSPARENT));
        setDividerHeight(15);
        setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
        setStackFromBottom(true);
    }

    @Override
    public int getCount() {
        return super.getCount();
    }

    @Override
    public int getDividerHeight() {
        return 25;
    }
}
